﻿using Serenity.ComponentModel;

namespace Serenity.PropertyGrid
{
    public partial class BasicPropertyProcessor : PropertyProcessor
    {
        private void SetCssClass(IPropertySource source, PropertyItem item)
        {
            var attr = source.GetAttribute<CssClassAttribute>();
            if (attr != null)
                item.CssClass = attr.CssClass;

            var hattr = source.GetAttribute<HeaderCssClassAttribute>();
            if (hattr != null)
                item.HeaderCssClass = hattr.Value;
        }
    }
}